//
//  UIView+JwScreen.m
//  JwPack
//
//  Created by 陈警卫 on 2024-07-29.
//

#import "UIView+JwScreen.h"
#import "JwScreen.h"

@implementation UIView (JwScreen)

+ (CGRect)jw_bounds {
    return [JwScreen bounds];
}

+ (CGSize)jw_size {
    return [JwScreen size];
}

+ (CGFloat)jw_width {
    return [JwScreen width];
}

+ (CGFloat)jw_height {
    return [JwScreen height];
}

/// 电池栏高度
+ (CGFloat)jw_batBarHeight {
    return [JwScreen batBarHeight];
}

/// 下巴高度
+ (CGFloat)jw_bottomBarHeight {
    return [JwScreen bottomBarHeight];
}

/// 判断刘海屏
+ (BOOL)jw_isScreenBangs {
    return [JwScreen isScreenBangs];
}

/// 导航栏高度
+ (CGFloat)jw_navBarHeight {
    return [JwScreen navBarHeight];
}

+ (CGFloat)jw_navBatBarHeight {
    return [JwScreen navBatBarHeight];
}

/// tab高度
+ (CGFloat)jw_tabBarHeight {
    return [JwScreen tabBarHeight];
}

+ (CGFloat)jw_tabBottomHeight {
    return [JwScreen tabBottomHeight];
}

/// 基础尺寸
+ (CGSize)jw_baseSize {
    return [JwScreen baseSize];
}

/// 基础宽度比例
+ (CGFloat)jw_scaleWidth {
    return [JwScreen scaleWidth];
}

/// keyWindow
+ (UIWindow *)jw_keyWindow {
    return [JwScreen keyWindow];
}

/// normalWindow
+ (UIWindow *)jw_normalWindow {
    return [JwScreen normalWindow];
}

/// window
+ (UIWindow *)jw_window {
    return [JwScreen window];
}

/// 最前导航控制器
+ (UINavigationController *)jw_frontNC {
    return [JwScreen frontNC];
}

/// 最前导航控制器
+ (UINavigationController *)jw_frontNCFromVC:(UIViewController *)vc {
    return [JwScreen frontNCFromVC:vc];
}

@end
